package com.weixin.mp.config;

import com.weixin.mp.api.WxMpInMemoryConfigStorage;
import com.weixin.mp.api.WxMpServiceImpl;

public class  MemberWeixinConfig {
	public static String AppId = "wxc57e8e97748f260e";
	public static String AppSecret = "16a3520c0cc086b129dd0afa92c8cbbd";
	public static WxMpServiceImpl getWxMpServiceImpl() {
		WxMpInMemoryConfigStorage config = new WxMpInMemoryConfigStorage();
		config.setAppId(AppId); // 设置微信公众号的appid
		config.setSecret(AppSecret); // 设置微信公众号的app
		WxMpServiceImpl wxService = new WxMpServiceImpl();
		wxService.setWxMpConfigStorage(config);
		return wxService;
	}
}
